package cq.zhcqk.activity;

import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;

import cq.zhcqk.R;
import cq.zhcqk.base.BaseActivity;

/**
 * Created by zhangle on 2017/12/12.
 */
public class SQ_JtysActivity extends BaseActivity implements View.OnClickListener{

    private WebView jtys;

    @Override
    protected void initView() {
        setContentView(R.layout.activity_sq_jtys);
        jtys = (WebView)findViewById(R.id.jtys);
        initBack();
    }

    @Override
    protected void initData() {
        jtys.loadUrl("http://www.jkwin.com.cn/ystm/mainPage.do?method=mainPage");
    }

    private void initBack(){
        ImageView back = (ImageView) findViewById(R.id.header_back);
        TextView title = (TextView) findViewById(R.id.header_text);
        title.setText("家庭医生");
        back.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.header_back:
                finish();
                break;
        }
    }
}
